package com.hanlan.springboot.mapper;

import com.hanlan.springboot.entity.Student;

import java.util.List;

/**
 * @description: StudentMapper类
 * @author: 01369542
 * @create: 2018/11/15
 **/
public interface StudentMapper {
    /*
     * @Description: 获取所有学生
     * @Author: 01369542
     * @Date: 2018/11/15
     */
    List<Student> selectAll();

    /*
     * @Description: 添加学生
     * @Author: 01369542
     * @Date: 2018/11/15
     */
    Student insert(Student student);

    /*
     * @Description: 根据主键id查询
     * @Author: 01369542
     * @Date: 2018/11/15
     */
    Student selectByPrimaryKey(Integer id);
}
